package com.zhy.skinchangenow

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.zhy.skinchangenow.databinding.ActivityEnterBinding
import com.zhy.skinchangenow.home.MainActivity
import com.zhy.skinchangenow.image.DynamicImageActivity
import com.zhy.skinchangenow.image.ImageFragmentActivity

/**
 *  Created by zxn on 2021/9/2.
 */
class EnterActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        ActivityEnterBinding.inflate(layoutInflater).run {
            setContentView(this.root)

            //换肤演示.
            btnA.setOnClickListener {
                MainActivity.jumpTo(this@EnterActivity)
            }

            //简单实现动态换图功能.
            btnB.setOnClickListener {
                DynamicImageActivity.jumpTo(this@EnterActivity)
            }

            //实现在Fragment动态换图.
            btnC.setOnClickListener {
                ImageFragmentActivity.jumpTo(this@EnterActivity)
            }
        }
    }

}